package com.itheima.object1;

public class TistStudent {
    public static void main(String[] args) {
        Student stu= new Student();
        System.out.println(stu.name);
        System.out.println(stu.age);
        //给成员变量赋值
        stu.name="张三";
        stu.age=23;
        //调用成员变量
        System.out.println(stu.name);
        System.out.println(stu.age);
        //调用成员方法
        stu.study();
        //内存地址
        System.out.println(stu);

    }
}
